package com.campus.course.dto.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程表
 * </p>
 *
 * @author maojr
 * @since 2024-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("courses")
@ApiModel(value="Courses对象", description="课程表")
public class Courses implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "课程名称")
    @TableField("course_name")
    private String courseName;

    @ApiModelProperty(value = "课程描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "授课教师id")
    @TableField("teacher_id")
    private Integer teacherId;

    @ApiModelProperty(value = "学分")
    @TableField("study_score")
    private Float studyScore;

    @ApiModelProperty(value = "开始周")
    @TableField("start_week")
    private Integer startWeek;

    @ApiModelProperty(value = "结束周")
    @TableField("end_week")
    private Integer endWeek;

    @ApiModelProperty(value = "剩余容量")
    @TableField("remain")
    private Integer remain;
}
